#ifndef RENDERAREA_H
#define RENDERAREA_H

#include <QPainterPath>
#include <QWidget>

class RenderArea : public QWidget
{
    Q_OBJECT

public:
    RenderArea(QWidget *parent = 0);

    QSize minimumSizeHint() const;
    QSize sizeHint() const;

public slots:
    void setStep(int width);

signals:
    void lengthChanged(double newValue);

protected:
    void paintEvent(QPaintEvent *event);

private:
    void makePath(int);

    QPainterPath path;
};

#endif
